package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IndicatorVariable {

    private int beginIndex;
    private int endIndex;
    private boolean indicator;
    private EmbeddedVariableName embeddedVariableName;

    public IndicatorVariable(int beginIndex,
                             boolean indicator,
                             EmbeddedVariableName embeddedVariableName) {
        this.beginIndex = beginIndex;
        this.endIndex = embeddedVariableName.getEndIndex();
        this.indicator = indicator;
        this.embeddedVariableName = embeddedVariableName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isIndicator() {
        return indicator;
    }

    public EmbeddedVariableName getEmbeddedVariableName() {
        return embeddedVariableName;
    }

}
